<template>
  <div>
    <el-col :span="24">
      <!--一行-->
      <el-row class="row">
        <div class="center">
          <el-row :gutter="20">
            <el-col :span="2" :offset="22">
            </el-col>
          </el-row>
          <el-row :gutter="20">

            <el-col :span="24" style="padding-top: 20px">
              <el-col :span="11">
                <el-col :span="6">
                  <span>医院名称</span>
                </el-col>
                <el-col :span="15">
                  <input type="text" class="search-input" value="上海交通大学医学院附属新华医院">
                </el-col>
              </el-col>
              <el-col :span="11" :offset="2">
                <el-col :span="6">
                  <span>等级</span>
                </el-col>
                <el-col :span="15">
                  <input type="text" class="search-input" value="三甲医院">
                </el-col>
              </el-col>
            </el-col>
            <el-col :span="24" style="padding-top: 20px;padding-bottom: 50px">
              <el-col :span="11">
                <el-col :span="6">
                  <span>地址</span>
                </el-col>
                <el-col :span="15">
                  <input type="text" class="search-input" value="上海市杨浦控江路">
                </el-col>
              </el-col>
              <el-col :span="11" :offset="2">
                <el-col :span="6">
                  <span>病床数</span>
                </el-col>
                <el-col :span="15">
                  <input type="text" class="search-input" value="8000">
                </el-col>
              </el-col>
            </el-col>
          </el-row>
        </div>
      </el-row>
      <!--二行-->
      <el-row class="row">
        <el-col :span="11">
          <div class="center">
            <el-row>
              <el-col :span="24" class="h">
                <p>销量</p>
              </el-col>
            </el-row>
            <el-row :gutter="20">
              <el-col :span="24">
                <el-card shadow="hover" :body-style="{ height: '100%'}">
                  <div :style="{width: '100%', height: '400px'}">
                    <Distribute></Distribute>
                  </div>
                </el-card>
              </el-col>
            </el-row>
          </div>
        </el-col>

        <el-col :span="11" :offset="2">
          <div class="center">
            <el-row>
              <el-col :span="24" class="h">
                <p>达成</p>
              </el-col>
            </el-row>
            <el-row :gutter="20">
              <el-col :span="24">
                <el-card shadow="hover" :body-style="{ height: '100%'}">
                  <div :style="{width: '100%', height: '400px'}">
                    <Circler></Circler>
                  </div>
                </el-card>
              </el-col>
            </el-row>
          </div>
        </el-col>

      </el-row>
      <!--三行-->
      <el-row class="row">
        <el-col :span="11">
          <div class="center">
            <el-row>
              <el-col :span="24" class="h">
                <p>增长</p>
              </el-col>
            </el-row>
            <el-row :gutter="20">
              <el-col :span="24">
                <el-card shadow="hover" :body-style="{ height: '100%'}">
                  <div :style="{width: '100%', height: '400px'}">
                    <Column></Column>
                  </div>
                </el-card>
              </el-col>
            </el-row>
          </div>
        </el-col>

        <el-col :span="11" :offset="2">
          <div class="center">
            <el-row>
              <el-col :span="24" class="h">
                <p>同比 环比</p>
              </el-col>
            </el-row>
            <el-row :gutter="20">
              <el-col :span="24">
                <el-card shadow="hover" :body-style="{ height: '100%'}">
                  <div :style="{width: '100%', height: '400px'}">
                    <brokenLine></brokenLine>
                  </div>
                </el-card>
              </el-col>
            </el-row>
          </div>
        </el-col>

      </el-row>
    </el-col>
  </div>
</template>

<script>
  import Distribute from './distribute'
  import Circler from './circler'
  import Column from './column'
  import brokenLine from './brokenLine'
  export default {
    components: {
      Distribute,Circler,Column,brokenLine
    },
    data() {
      return {
        activea:true,
        activeb:false,
      }
    },
    methods:{
      isActivea(){
        this.activea = true;
        this.activeb = false;
        this.activec = false;
        this.actived = false
      },
      isActiveb(){
        this.activea = false;
        this.activeb = true;
        this.activec = false;
        this.actived = false
      },
    }
  }
</script>

<style scoped>
  .activea{
    background-color: rgba(0,0,0,.3)
  }
  .activeb{
    background-color: rgba(0,0,0,.3)
  }

  .basic {
    background-color: rgba(245, 245, 248, 0.1);
    margin-top: 50px;
  }
  .basic > div {
    color: #fff;
    padding: 15px 20px;
  }
  .row {
    padding-bottom: 30px;
  }
  .center {
    padding: 10px 40px;
    color: #fff;
    border-radius: 10px;
    background-image: url("../../../assets/blur-bg-blurred.jpg");
  }
  .h {
    border-bottom: 2px solid #fff;
    height: 50px;
    line-height: 50px;
    font-size: 18px;
  }
  .el-button {
    background: #1f9f91;
    border: none;
    color: #fff;
    font-size: 18px;
  }
  span {
    display: inline-block;
    height: 25px;
    font-size: 16px;
  }
  .search-input {
    margin-left: -8px;
    padding-left: 8px;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, .15);
    height: 30px;
    width: 100%;
  }
  .el-card{
    background-color: rgba(245, 245, 248, 0);
    border: none;
  }
</style>
